#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <assert.h>
int my_strcmp(const char* ch1, const char* ch2)
{
	assert(ch1 && ch2);
		while (*ch1++ == *ch2++)
		{
			;
		}
	if (*ch1 == *ch2)
	{
		return 0;
	}
	else if (*ch1 > *ch2)
	{
		return 1;
	}
	else
		return -1;
}

int main()
{
	char ch1[] = "ABCDEF";
	char ch2[] = "ABDEF";
	int ret = my_strcmp(ch1, ch2);
	printf("%d\n", ret);
	return 0;
}